up: microprocessors - microchip 16F84A - data memory  
Microchip 16F84A
Indirect Addressing
What links here?
The INDF register is used to read and write the register pointed to by the FSR register.

Clearing a range of RAM using indirect addressing

This example clears 0x20 to 0x2F using indirect addressing.

        movlw   0x20        ;initialize pointer
        movwf   FSR         ;to RAM
NEXT    clrf    INDF        ;clear INDF register
        incf    FSR         ;inc pointer
        btfss   FSR,4       ;all done?
        goto    NEXT        ;NO, clear next
CONTINUE
        :                   ;YES, continue
microprocessors - microchip 16F84A - indirect addressing
filename:microprocessors - microchip 16F84A - indirect addressing
filename:microprocessors%20%2D%20microchip%2016F84A%20%2D%20indirect%20addressing
last edit:June 02 2011 21:32:22 (4721 days ago)
ct = 1714968219.000000 = May 06 2024 00:03:39
ft = 1307064742.000000 = June 02 2011 21:32:22
dt = 407903477.000000